package com.qidian.permission.mapper;

import com.qidian.permission.entity.Role;
import com.qidian.permission.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 32郗建狄
 * @Company GX631
 * Time 2023/10/21 15:38
 * Description
 */
public interface RoleMapper {

    Role selectById(Long roleId);
    int addRole(Role role);
    Role selectByRoleName(String roleName);
    Integer selectCount(Role role);
    List<Role> selectByPage(@Param("role") Role role, @Param("start") Integer start, @Param("limit") Integer limit);
    Integer update(Role role);
    Integer deteleByRoleId(Long roleId);
    Integer deletesByRoleId(Long[] roleIds);
}
